package org.chen.concurrent.springbootmybatisconcurrent.response;

import lombok.Data;

@Data
public class R {

    public static Ret success() {
        return new Ret(200, "SUCCESS");
    }

    public static Ret success(Object data) {
        return new Ret(200, "SUCCESS", data);
    }

    public static Ret fail() {
        return new Ret(900, "FAIL");
    }

    public static Ret success(String msg) {
        return new Ret(900, "SUCCESS");
    }

}
